package com.wut.core.common.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import lombok.Data;

@Data
@ApiModel(value = "树形控件信息")
public class Tree {

    @ApiModelProperty(value = "节点ID", example = "")
    private String id;

    @ApiModelProperty(value = "节点名称", example = "")
    private String name;

    @ApiModelProperty(value = "父节点ID", example = "")
    private String parentId;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @ApiModelProperty(value = "子节点", example = "")
    private List<Tree> children;
}